package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_initBinder_0 implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_initBinder_0() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_java_format_1_1 = new TagInfo("java:format", //$NON-NLS-1$
            1, 1,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_iterate_4_4 = new TagInfo("c:iterate", //$NON-NLS-1$
            4, 4,
            new String[] {
                "var", //$NON-NLS-1$
                "select", //$NON-NLS-1$
            },
            new String[] {
                "eachTable", //$NON-NLS-1$
                "$table", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_if_5_5 = new TagInfo("c:if", //$NON-NLS-1$
            5, 5,
            new String[] {
                "test", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/@isRelation='false'", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_46 = new TagInfo("c:get", //$NON-NLS-1$
            6, 46,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_100 = new TagInfo("c:get", //$NON-NLS-1$
            6, 100,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        RuntimeTagElement _jettag_java_format_1_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "format", "java:format", _td_java_format_1_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_format_1_1.setRuntimeParent(null);
        _jettag_java_format_1_1.setTagInfo(_td_java_format_1_1);
        _jettag_java_format_1_1.doStart(context, out);
        JET2Writer _jettag_java_format_1_1_saved_out = out;
        while (_jettag_java_format_1_1.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(" \t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t@InitBinder");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\tpublic void initBinder(WebDataBinder binder, HttpServletRequest request) { // Register static property editors.");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_iterate_4_4 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_4_4); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_iterate_4_4.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_iterate_4_4.setTagInfo(_td_c_iterate_4_4);
            _jettag_c_iterate_4_4.doStart(context, out);
            while (_jettag_c_iterate_4_4.okToProcessBody()) {
                RuntimeTagElement _jettag_c_if_5_5 = context.getTagFactory().createRuntimeTag(_jetns_c, "if", "c:if", _td_c_if_5_5); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_if_5_5.setRuntimeParent(_jettag_c_iterate_4_4);
                _jettag_c_if_5_5.setTagInfo(_td_c_if_5_5);
                _jettag_c_if_5_5.doStart(context, out);
                while (_jettag_c_if_5_5.okToProcessBody()) {
                    out.write("\t\t\t\t\tbinder.registerCustomEditor(Set.class, \"");  //$NON-NLS-1$        
                    RuntimeTagElement _jettag_c_get_6_46 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_46); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_get_6_46.setRuntimeParent(_jettag_c_if_5_5);
                    _jettag_c_get_6_46.setTagInfo(_td_c_get_6_46);
                    _jettag_c_get_6_46.doStart(context, out);
                    _jettag_c_get_6_46.doEnd();
                    out.write("s\", ");  //$NON-NLS-1$        
                    RuntimeTagElement _jettag_c_get_6_100 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_100); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_get_6_100.setRuntimeParent(_jettag_c_if_5_5);
                    _jettag_c_get_6_100.setTagInfo(_td_c_get_6_100);
                    _jettag_c_get_6_100.doStart(context, out);
                    _jettag_c_get_6_100.doEnd();
                    out.write("sEditor);");  //$NON-NLS-1$        
                    out.write(NL);         
                    _jettag_c_if_5_5.handleBodyContent(out);
                }
                _jettag_c_if_5_5.doEnd();
                _jettag_c_iterate_4_4.handleBodyContent(out);
            }
            _jettag_c_iterate_4_4.doEnd();
            out.write("\t\t\tbinder.registerCustomEditor(java.util.Calendar.class, new org.skyway.spring.util.databinding.CustomCalendarEditor());");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tbinder.registerCustomEditor(byte[].class, new org.springframework.web.multipart.support.ByteArrayMultipartFileEditor());");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tbinder.registerCustomEditor(boolean.class, new org.skyway.spring.util.databinding.EnhancedBooleanEditor(false));");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tbinder.registerCustomEditor(Boolean.class, new org.skyway.spring.util.databinding.EnhancedBooleanEditor(true));");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tbinder.registerCustomEditor(java.math.BigDecimal.class, new org.skyway.spring.util.databinding.NaNHandlingNumberEditor(java.math.BigDecimal.class, true));");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tbinder.registerCustomEditor(Integer.class, new org.skyway.spring.util.databinding.NaNHandlingNumberEditor(Integer.class, true));");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tbinder.registerCustomEditor(java.util.Calendar.class, new org.skyway.spring.util.databinding.CustomDateEditor());");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tbinder.registerCustomEditor(String.class, new org.skyway.spring.util.databinding.StringEditor());");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tbinder.registerCustomEditor(Long.class, new org.skyway.spring.util.databinding.NaNHandlingNumberEditor(Long.class, true));");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tbinder.registerCustomEditor(Double.class, new org.skyway.spring.util.databinding.NaNHandlingNumberEditor(Double.class, true));");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tbinder.registerCustomEditor(java.util.Calendar.class,new org.skyway.spring.util.databinding.CustomCalendarEditor());");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t}");  //$NON-NLS-1$        
            out.write(NL);         
            _jettag_java_format_1_1.handleBodyContent(out);
        }
        out = _jettag_java_format_1_1_saved_out;
        _jettag_java_format_1_1.doEnd();
        out.write(" ");  //$NON-NLS-1$        
    }
}
